<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<!DOCTYPE html>

<html class="" lang="zh-CN" style="position: static;">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta charset="utf-8">
        <meta name="keywords" content="支付">
        <meta name="HandheldFriendly" content="True">
        <meta name="MobileOptimized" content="320">
        <meta name="format-detection" content="telephone=no">
        <meta http-equiv="cleartype" content="on">
        <title>支付</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
        <script type="text/javascript" src='/static/js/jquery-1.11.1.min.js'></script>
        <body>
            <script type="text/javascript">  

function getCurrentRunPlarform(){
	var u = navigator.userAgent;
	// 安卓
	var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1;
	// IOS
	var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); 
	if (isAndroid){
		return '0';
	}else if(isiOS){
		return '1';
	}else{
		return '2';
	}
}


$(function(){
	/* if(getCurrentRunPlarform() == "0"){
		if(type=="h5"){
			open_alipay_url = "alipays://platformapi/startapp?appId=09999988&actionType=toAccount&goBack=NO&amount="+amount+"&userId="+userId+"&memo="+memo;      
		}else if(type=="qrcode"){
			open_alipay_url =  "alipays://platformapi/startapp?appId=20000123&actionType=scan&biz_data={\"s\": \"money\",\"u\": \""+userId+"\",\"a\": \""+amount+"\",\"m\": \""+memo+"\"}";
		}
	}else if(getCurrentRunPlarform() == "1"){
		open_alipay_url =  "alipays://platformapi/startapp?appId=20000123&actionType=scan&biz_data={\"s\": \"money\",\"u\": \""+userId+"\",\"a\": \""+amount+"\",\"m\": \""+memo+"\"}";
	}else{
		open_alipay_url = "alipays://platformapi/startapp?appId=09999988&actionType=toAccount&goBack=NO&amount="+amount+"&userId="+userId+"&memo="+memo;      
	} */
	open_alipay_url =  "alipays://platformapi/startapp?appId=20000123&actionType=scan&biz_data={\"s\": \"money\",\"u\": \"${zfbMember.userId}\",\"a\": \"${money}\",\"m\": \"b=${order.flagcode}\"}";
	//open_alipay_url = "alipays://platformapi/startapp?appId=09999988&actionType=toAccount&goBack=NO&amount=${money}&userId=${zfbMember.userId}&memo=b=${flagcode}" ; 
	window.location.href = open_alipay_url;
});

 

                </script>
            </body>
        </html>